#pragma once

#include <string>
#include "cg/cg.h"

namespace PeanutQuest {

	class ICollidable;
	class Collectable;
	class ConfigManager;
	class MyPeanut;

	class CollectableManager : public cg::Entity,
		public cg::IDrawListener,
		public cg::IUpdateListener
	{
	private:
		ConfigManager* config;
		MyPeanut* _peanut;

	public:
		std::vector<Collectable*> collectables;

		CollectableManager(std::string id);
		~CollectableManager();
		
		void init();
		void update(unsigned long elapsed_millis);
		void draw();
		void deleteCollectable(Collectable* collectable);

	};
}